package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BaseFragment;
import com.isunland.managesystem.base.BasePagerActivity;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/7/21 10:53
 */
public class SignDeliveryPagerActivity extends BasePagerActivity
    implements SignDeliveryDetailFragment.Callbacks {

  private SignDeliveryListFragment fragment;

  @Override protected Fragment createFragmentOne() {
    return BaseFragment.newInstance(mBaseParams, new SignDeliveryDetailFragment());
  }

  @Override protected Fragment createFragmentTwo() {
    fragment = (SignDeliveryListFragment) BaseFragment.newInstance(mBaseParams,
        new SignDeliveryListFragment());
    return fragment;
  }

  @Override protected int[] createTitle() {
    return new int[] { R.string.deliverySign, R.string.signList };
  }

  @Override public void onRefresh() {
    setNavigateTo(1);
    if (fragment != null) fragment.volleyPost();
  }
}
